package com.example.langchain4j.mapper;


import com.example.langchain4j.pojo.Reservation;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface ReservationMapper {

    @Insert("insert into reservation(id,name,gender,phone,communication_time,province,estimated_score) values(#{id},#{name},#{gender},#{phone},#{communicationTime},#{province},#{estimatedScore})")
    void insert(Reservation  reservation);
    @Select("select * from reservation where phone = #{phone}")
    Reservation selectForPhone(String phone);
}
